#include "Support.h"
#include "StateManager.h"
#include "WinState.h"
#include "MenuState.h"

void CWinState::Init ()
{

}

void CWinState::Release ()
{

}

void CWinState::Pause ()
{

}

void CWinState::Resume ()
{

}

void CWinState::Update ()
{
	if (GIsKeyPress (KEY_SPACE))
	{
		CStateManager::GetInstance ()->ChangeState (new CMenuState ());
	}
}

void CWinState::Draw ()
{
	GPutStringToBufferWithMargin ("Flow", 8, GColors::LIGHT_CYAN);

	GPutStringToBufferWithMargin ("You win!", 12, GColors::LIGHT_GREEN);
	GPutStringToBufferWithMargin ("Press Space to return to Menu", 14, GColors::LIGHT_MAGENTA);
}